package ystp.service;


import org.springframework.stereotype.Service;
import ystp.dao.DictXiangmuleixingMapper;
import ystp.model.DictXiangmuleixing;
import ystp.model.DictXiangmuleixingExample;

import javax.annotation.Resource;
import java.util.List;

@Service
public class XiangmuleixingService {

    @Resource
    DictXiangmuleixingMapper ddMapper;

    public List<DictXiangmuleixing> findAll(String ppText){
        DictXiangmuleixingExample mmExample=new DictXiangmuleixingExample();
        mmExample.createCriteria().andTextLike(ppText).andStatusEqualTo(100);
        mmExample.setOrderByClause("ordernumber ASC");
        return  ddMapper.selectByExample(mmExample);
    }

}
